*{
    margin: 0;
    padding: 0;
    border: 0;
}

body{
    padding-left: 10px;
    padding-top: 10px;
}

.desc
{
    color: green;
    font-size: 22px;
}

.box{
    width: 300px;
    color: blue;
    font-size: 18px;
    border: 1px solid red;
    margin-top: 20px;
}

.one-line-ellipsis{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}

.multi-line-ellipsis-webkit{
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    
}

.multi-line-ellipsis{
    position: relative;
    line-height: 1.4em;
    /* 3 times the line-height to show 3 lines */
    height: 2.8em;
    overflow: hidden;
}
.multi-line-ellipsis::after{
    content: '...';/*"\02026";*//*...*/
    font-weight: bold;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 20px 1px 45px;
    background:-webkit-linear-gradient(left,transparent,#fff 55%);
    background:-o-linear-gradient(right,transparent,#fff 55%);
    background:-moz-linear-gradient(right,transparent,#fff 55%);
    background:linear-gradient(to right,transparent,#fff 55%);
}